package code._13io.bytestream.copy;

import untils.FileUtils;

import java.io.*;

public class Demo2 {


    public static void main(String[] args) throws IOException {
        BufferedInputStream in = new BufferedInputStream(new FileInputStream("fileTest\\a.txt"));
        BufferedOutputStream out = new BufferedOutputStream(new FileOutputStream("fileTest\\b.txt", true));

        long start = System.currentTimeMillis();
        FileUtils.copyMultiBytes(in,out);
        long end = System.currentTimeMillis();
        System.out.println(end-start);

        in.close();
        out.close();
    }
}
